package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzweb.dao.JazUserAuntPageDao;
import com.jinzhi.jzweb.domain.vo.JazUserAuntVO;
import com.jinzhi.jzweb.domain.vo.JazUserDemandVO;
import com.jinzhi.jzweb.service.JazUserAuntPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 * <pre>
 * 
 * </pre>
 * <small> 2023-04-18 09:19:00 | Long</small>
 */
@Service
public class JazUserAuntPageServiceImpl extends CoreServiceImpl<JazUserAuntPageDao, JazUserAuntVO> implements JazUserAuntPageService {
    @Autowired
    private JazUserAuntPageDao jazUserAuntPageDao;


    @Override
    public Page<JazUserAuntVO> selectUserAunt(JazUserAuntVO jazUserAuntVO, int current, int size) {
        Page<JazUserAuntVO> page = new Page<>(current, size);
        List<JazUserAuntVO> jazUserAuntVOS = jazUserAuntPageDao.selectUserAunt(page, jazUserAuntVO);
        return page.setRecords(jazUserAuntVOS);
    }
}
